# -*- coding: UTF-8 -*-
# @Author  : icedew
# @File    : __init__.py.py
# @Time    : 2019-4-29 17:17
# from flask import Flask
# from flask_login import LoginManager
# 
# from apps.cms import bp as cms_bp
# from apps.front import bp as front_bp
# from apps.common import bp as common_bp
# import config
# from exts import db
# from flask_wtf.csrf import CSRFProtect
# 
# csrf = CSRFProtect()
# login_manager = LoginManager()
# login_manager.session_protection = "basic"
# login_manager.login_view = "cms.login"
# def create_app():
#     app = Flask(__name__)
#     csrf.init_app(app)
#     app.config.from_object(config)
#     app.register_blueprint(cms_bp)
#     app.register_blueprint(front_bp)
#     app.register_blueprint(common_bp)
#     db.init_app(app)
#     login_manager.init_app(app)
#     return app
